
JavaArt Chapter 2. Executing Pixels using Drag-and-Drop

From the website:

  Killer Game Programming in Java
  http://fivedots.coe.psu.ac.th/~ad/jg

  Dr. Andrew Davison
  Dept. of Computer Engineering
  Prince of Songkla University
  Hat yai, Songkhla 90112, Thailand
  E-mail: ad@fivedots.coe.psu.ac.th


If you use this code, please mention my name, and include a link
to the website.

Thanks,
  Andrew

============================

This chapter follows on from 
   "JavaArt Chapter 1: On-the-Fly Dynamic Compilation and Execution"
   http://fivedots.coe.psu.ac.th/~ad/jg/javaArt1/


============================

This directory contains files to be used with the launch4j software:

  *  epConfig.xml
       - a sample configuration file for launch4j, which will 
         create ExecutePixels.exe

       - you can view it (and edit it) with any text editor

       - note: THIS CONFIGURATION WILL NOT WORK as it stands, since 
         it contains hardwired paths for ExecutePixels.jar and mosaic.ico. 
         They can be changed in the "Basic" tab of the launch4j GUI.


  *  ExecutePixels.jar
       - the One-JAR version of ExecutePixels, which contains janino.jar

  *  mosaic.ico
       - an icon used for the native executable

  *  epSplash.bmp
       - a splash screen image which can be added to the executable 
         by setting the "Splash" tab of the launch4j GUI


  *  Comparison.png
       - an image file for testing ExecutePixel.exe

----------------------------

Downloading and Using launch4j

launch4j is available from http://launch4j.sourceforge.net/ 

I downloaded and installed the Windows version, launch4j-3.0.1-win32.exe. 

From inside launch4j, open epConfig.xml, then modify the JAR and icon 
paths to ExecutePixels.jar and mosaic.ico.

Press the "cog wheel" menu item, and an executable called
ExecutePixels.exe will be created in the current directory.

----------------------------

Using ExecutePixels.exe 

Drag and drop an image file on top of ExecutePixels.exe
to have its image executed. 

e.g. drop Comparison.png onto ExecutePixels.exe


---------
Last updated: 13th February 2009
